import request from '@/plugin/axios'

export function getPartitions(data) {
    return request({
        url: '/partition/page',
        method: 'post',
        data
    })
}

export function createPartition(data) {
    return request({
        url: '/partition/create',
        method: 'post',
        data
    })
}

export function deletePartitions(data) {
    return request({
        url: '/partition/recover',
        method: 'post',
        data
    })
}

export function updatePartition(data) {
    return request({
        url: '/partition/update',
        method: 'post',
        data
    })
}

export function getPartitionSelection(data) {
    return request({
        url: '/partition/selection',
        method: 'post',
        data
    })
}